package com.dg.gaming.server.controllers;

import com.dg.gaming.server.*;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2009</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class NoMoveThread implements Runnable {
    private TableController contr;
    private boolean cancel = false;
    private boolean loose;
    public NoMoveThread(TableController contr, boolean loose) {
        this.contr = contr;
        this.loose = loose;
    }

    public void run() {
        if (!isCanceled()) {
            contr.sendTimerMessage(loose);
        }
    }

    public boolean isCanceled() {
        return cancel;
    }


    public void cancel() {
        this.cancel = true;
    }

}
